#include <stdio.h>
#define N 10
int main(void)
{
    double ident[N][N];
    int count = 0;
    for (double *p = ident[0]; p < ident[N - 1] + N; p++, count++)
        if (count % (N + 1))
            *p = 0.0;
        else
            *p = 1.0;
    for (int i = 0; i < N; i++) {
        for (int j = 0; j < N; j++)
            printf("%g ", ident[i][j]);
        printf("\n");
    }
    return 0;
}